package dao.lzl.proxy;

import dao.lzl.service.Buyer;

import java.util.logging.Logger;

public class IntermediaryImpl implements Buyer {
    private Logger logger = Logger.getLogger(String.valueOf(IntermediaryImpl.class));
    private Buyer target;

    public IntermediaryImpl(Buyer target){
        this.target = target;
    }
    @Override
    public String havealook() {
        before();
        String feedback = target.havealook();
        after();
        return "看房记录：买家反馈"+feedback+"“";
    }
    public void before(){
        logger.config("前期准备");
        logger.config("查找房源");
        logger.config("和卖家沟通时间");
    }

    public void after(){
        logger.config("后期跟踪");
        logger.config("和买家沟通意见");
    }
}
